import {
    HashRouter,
    useRoutes
} from "react-router-dom";
import React,{useContext, useEffect} from 'react'
import MyContext from "../utils/myContext.jsx";
import {Observer} from 'mobx-react'

const Routers=()=>{
    const store = useContext(MyContext)
    const routers = useRoutes(store.userRouter)
    return (
        <Observer>
            {() => routers}
           
        </Observer>
    )
}
export default Routers